<?php
// 路由配置文件
return [
    // 网站生成器首页
    '/' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'index'
    ],
    '/website' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'index'
    ],
    
    // 网站生成相关路由
    '/website/index' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'index'
    ],
    '/website/generate' => [
        'method' => 'POST',
        'controller' => 'website',
        'action' => 'generate'
    ],
    '/website/preview/:id' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'preview'
    ],
    '/website/save' => [
        'method' => 'POST',
        'controller' => 'website',
        'action' => 'save'
    ],
    '/website/components' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'getComponents'
    ],
    '/website/component/:type' => [
        'method' => 'GET',
        'controller' => 'website',
        'action' => 'getComponent'
    ],
    '/website/aiGenerateComponent' => [
        'method' => 'POST',
        'controller' => 'website',
        'action' => 'aiGenerateComponent'
    ],
    
    // API接口路由
    '/api/component/data' => [
        'method' => 'POST',
        'controller' => 'api/component',
        'action' => 'data'
    ],
    '/api/ai/generate' => [
        'method' => 'POST',
        'controller' => 'api/ai',
        'action' => 'generate'
    ],
    '/api/upload/image' => [
        'method' => 'POST',
        'controller' => 'api/upload',
        'action' => 'image'
    ]
];